package com.study.io.nio.demo;

import com.study.io.nio.demo.channel.ServerSocketChannelDemo;

import java.io.IOException;

/**
 * NIO服务端
 */
public class ServerSocketChannelTest {

    /**
     * 启动服务端测试
     *
     * @throws IOException
     */
    public static void main(String[] args) throws IOException {
        ServerSocketChannelDemo server = new ServerSocketChannelDemo();
        server.initServer(8000);
        server.listen();
    }
}